package com.wtf.generator.constants;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
 * date: 2022/6/18 10:59
 * @author linhuanyou
 * @email 496558736@qq.com
 * @version 1.0
 */
@Component
public class DsDbStoreConstant {

    private static boolean dsDbStore;

    public static boolean isDsDbStore() {
        return DsDbStoreConstant.dsDbStore;
    }

    @Value("${ds.db.store:false}")
    public void setDsDbStore(boolean dsDbStore) {
        DsDbStoreConstant.dsDbStore = dsDbStore;
    }
}
